package com.yxinsur.imc.business.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yxinsur.imc.business.domain.ImcContractExpenseRate;
import com.yxinsur.imc.business.excel.ContractExpenseRateTemplate;
import com.yxinsur.imc.business.form.ContractExpenseDataForm;
import com.yxinsur.imc.business.form.ContractExpenseSearchForm;
import com.yxinsur.imc.business.vo.ContractExpenseRateVo;

/**
 * 协议-产品费率Service接口
 *
 * @author imc
 * @date 2021-08-20
 */
public interface IImcContractExpenseRateService extends IService<ImcContractExpenseRate> {
    /**
     * 查询协议-产品费率
     *
     * @param id 协议-产品费率ID
     * @return 协议-产品费率
     */
    public ContractExpenseRateVo selectImcContractExpenseRateById(Long id);

    /**
     * 查询协议-产品费率列表
     *
     * @param contractExpenseSearchForm 协议-产品费率
     * @return 协议-产品费率集合
     */
    public List<ImcContractExpenseRate> selectImcContractExpenseRateList(ContractExpenseSearchForm contractExpenseSearchForm);

    /**
     * 新增协议-产品费率
     *
     * @param contractExpenseDataForm 协议-产品费率
     * @return 结果
     */
    public int insertImcContractExpenseRate(ContractExpenseDataForm contractExpenseDataForm);

    /**
     * 修改协议-产品费率
     *
     * @param contractExpenseDataForm 协议-产品费率
     * @return 结果
     */
    public int updateImcContractExpenseRate(ContractExpenseDataForm contractExpenseDataForm);

    /**
     * 批量删除协议-产品费率
     *
     * @param ids 需要删除的协议-产品费率ID
     * @return 结果
     */
    public int deleteImcContractExpenseRateByIds(Long[] ids);

    /**
     * 删除协议-产品费率信息
     *
     * @param id 协议-产品费率ID
     * @return 结果
     */
    public int deleteImcContractExpenseRateById(String id);

    List<ContractExpenseRateVo> selectContractExpenseRateVoList(ContractExpenseSearchForm contractExpenseSearchForm);

    /**
     * 协议费率产品导入
     * @param contractExpenseId
     * @param rateList
     * @return
     */
    String importExpenseRate(Long contractExpenseId, List<ContractExpenseRateTemplate> rateList);
}
